import service from "../index.js";

const orderApi = {
    //修改
    update(order){
        return service.put('/admin/order',order);
    },
    //查询所有
    selectByPage(pageNum, pageSize, order){
        order.pageNum = pageNum;
        order.pageSize = pageSize;
        //请求参数
        return service.get('/admin/order', {params: order});
    },
    //根据id查询
    selectByID(id){
        return service.get(`/admin/order/${id}`)
    },
}
export default orderApi;